﻿@{
    Layout = null;
}
@model Ec_System.Models.Web.ProductClassData

<div class="block clearfix">
    <div class="box">
        <div class="box_1">
            <div class="ur_here">
                <a href="http://www.guoshuhui.com">首页</a> <code>&gt;</code> <span>商品分类</span> <code>&gt;</code> <span>水果专区</span>
                <div class="b_box2">
                </div>
            </div>

            <div class="screeBox clearfix">
                <strong>一级分类：</strong>

                <div class="b_box">

                    <ul>
                        @if (ViewBag.class1ID == 0)
                        {
                            <li><span>全部</span></li>
                        }
                        else
                        {
                            <li><a href="/ProductClass/0-0-0">全部</a> </li>
                        }

                        @foreach (var class1 in Model.Class1)
                        {
                            if (class1.ID == ViewBag.class1ID)
                            {
                                <li><span>@class1.PClassName</span></li>
                            }
                            else
                            {
                                <li><a href="/ProductClass/@class1.ID-0-0">@class1.PClassName</a> </li>
                            }
                        }
                    </ul>
                </div>
            </div>

            <div class="screeBox clearfix">
                <strong>二级分类：</strong>
                <div class="b_box">
                    <ul>


                        @if (ViewBag.class2ID == 0)
                        {
                            <li><span>全部</span></li>
                        }
                        else
                        {
                            <li><a href="/ProductClass/@ViewBag.class1ID-0-0">全部</a> </li>
                        }

                        @foreach (var class2 in Model.Class2)
                        {
                            if (class2.ID == ViewBag.class2ID)
                            {
                                <li><span>@class2.PClassName</span></li>
                            }
                            else
                            {
                                <li><a href="/ProductClass/@class2.ParentID-@class2.ID-0">@class2.PClassName</a> </li>
                            }
                        }
                    </ul>
                </div>

            </div>

            <div class="screeBox clearfix">
                <strong>三级分类：</strong>
                <ul>

                    @if (ViewBag.class3ID == 0)
                    {
                        <li><span>全部</span></li>
                    }
                    else
                    {
                        <li><a href="/ProductClass/@ViewBag.class1ID-@ViewBag.class2ID-0">全部</a> </li>
                    }

                    @foreach (var class3 in Model.Class3)
                    {
                        if (class3.ID == ViewBag.class3ID)
                        {
                            <li><span>@class3.PClassName</span></li>
                        }
                        else
                        {
                            <li><a href="/ProductClass/@class3.ParentID-@class3.ID-0">@class3.PClassName</a> </li>
                        }
                    }
                </ul>
            </div>
        </div>
    </div>
    <div class="blank"></div>
